package com.bnyy.common;

public interface Constant {

    /**
     * sharedPreferences文件名
     */
    String SP_NAME = "com.bnyy.medicalHousekeeper";
    String SP_NAME_AREA_SORT_BY_FIRST_LETTER = "SP_NAME_AREA_SORT_BY_FIRST_LETTER";
    String IMAGE_PATH = "/DCIM/Camera/BNYY/medicalHousekeeper/Image/";

    interface NetWork {
        String SOCKET_URL_FORMAL = "www.bainianyang.com";
        int SOCKET_PORT_FROMAL = 5990;

        String SOCKET_URL_LOCAL = "47.106.134.247";
        int SOCKET_PORT_LOCAL = 5990;

        String BASE_URL_FORMAL = "https://www.bainianyang.com/";
        String BASE_URL_TEST = "http://47.106.134.247/";
//        String BASE_URL_TEST = "http://192.168.10.160:20002/";

        String BASE_URL_SERVER = "serve/";
        String BASE_URL_JAVA = "order_s2/";

        String WEB_SOCKET_URL = "/order_s2/app/websocket";

        String URL_PRIVACY_RIGHTS = "html/h5/#/serve_privacy5";
        String URL_AGREEMENT = "html/h5/#/serve_agreement5";
    }

    interface WX {
        // 傻逼微信开放平台签名用md5去冒号的小写
        String APP_ID = "wx53a3f7a279196cfb";
    }

    interface Lx {
        String APP_ID = "lx1f9f8dad76ac2854";
        String APP_SECRET = "c190f129ef18fc42fa83459c1ea6b809701aac83";
    }

    interface SpTag {
        String BASE_URL = "BASE_URL";
        String DEVICE_UUID = "DEVICE_UUID";
        String TOKEN = "TOKEN";
        String GLOBAL_PARAMS = "GLOBAL_PARAMS";
        String GLOBAL_PARAMS_UPDATE_TIME = "GLOBAL_PARAMS_UPDATE_TIME";
        String CARE_MODE = "CARE_MODE"; // 是否开启关怀模式
        String SHOW_CHANGE_USER_TIPS = "SHOW_CHANGE_USER_TIPS"; // 切换用户提示
        /**
         * 首次安装导航页
         */
        String SHOW_GUIDE = "SHOW_GUIDE";

        /**
         * 第一次登陆或者最近一次选中查看数据的userId，
         */
        String LATEST_USER_ID = "LATEST_USER_ID";

//        String LX_SLEEP = "LX_SLEEP";
//        String LX_HEART_RATE = "LX_HEART_RATE";
//        String LX_STEP_COUNT = "LX_STEP_COUNT";
//        String LX_BLOOD_PRESSURE = "LX_BLOOD_PRESSURE";
//        String LX_WEIGHT = "LX_WEIGHT";
//        String HEALTH_DATA_BLOOD_OXYGEN = "HEALTH_DATA_BLOOD_OXYGEN";
//        String HEALTH_DATA_TEMPERATUR = "HEALTH_DATA_TEMPERATUR";
//        String LX_CALORIES = "LX_CALORIES";
//        String LX_SPEED = "LX_SPEED";
//        String LX_SPORT_REPORT = "LX_SPORT_REPORT";
//        String LX_SPORTNOTIFY = "LX_SPORTNOTIFY";
//        String LX_HEARTRATESTATISTIC = "LX_HEARTRATESTATISTIC";

        String SHOW_RESEARCH_WELCOME = "SHOW_RESEARCH_WELCOME";


        /**
         * 是否已经显示过导航页
         */
        String IS_SHOW_GUIDE_PAGE = "IS_SHOW_GUIDE_PAGE";

        String SHOW_AGREEMENT_DIALOG = "show_agreement_dialog";

        String AREA_SORT_BY_FIRST_LETTER = "AREA_SORT_BY_FIRST_LETTER";
        String AREA_SORT_BY_FIRST_LETTER_UUID = "AREA_SORT_BY_FIRST_LETTER_UUID";

        String LATEST_CONNECT_BN_BLUE_TOOTH_MAC = "LATEST_CONNECT_BN_BLUE_TOOTH_MAC";

        String MALL_SEARCH_RECORD = "MALL_SEARCH_RECORD";
    }

    interface EventBusTag {
        interface App {
            String RESTART = "RESTART";
        }

        interface Device {
            int BIND_DEVICE_FINISH = 10000;
            int DEVICE_CONNECTED = 10001;
            int DEVICE_DISCONNECTED = 10002;
            int DEVICE_CONNECTING = 10003;
        }

        //        int DELETE_DEVICE = 10004; // 删除设备
//        int EDIT_DEVICE = 10005; // 编辑设备信息
        int REFRESH_OBSERVER = 10004; // 刷新家人共享
        int ADDED_OBSERVER = 10005; // 添加共享者
        int REFRESH_HEALTH_DATA = 10007; // 刷新健康数据界面
        int ALL_ALARM_CLEAR = 10008; // 所有救援已经结束

        interface WX {
            int PAY_SUCCESS = 10009;
            int PAY_FAILED = 10010;
        }

        interface Vip {
            int REFRESH = 10011;
            int RENEW = 10012;
            int BOOK_PHYSICAL_EXAMINATION = 10013;
        }

        interface Integral {
            int EXCHANGED = 10014;
        }

        int REFRESH_USER_INFO = 10014;
        int ALL_SHARE_DEVICE_DELETED = 10016; // 家属共享中所有被共享设备全部删除
        int NURSING_GOODS_CART_ADD = 10017; // 护理服务购物车添加服务
        int NURSING_GOODS_CART_REMOVE = 10018; // 护理服务购物车添加服务
        int RECEIVING_ADDRESS_CHANGED = 10019; // 收货地址变动
        int QUESTIONNAIRE_FINISH = 10020; // 刷新血压详情

        String BLUETOOTH_EVENT = "BLUETOOTH_EVENT";
    }

    interface ActivityRequestCode {
        int EDIT_DEVICE = 20000;
        int REQUEST_MIUI_SMS_PERMISSION = 20001;
        int EDIT_CONTACT_HEADER = 20002;
        int EDIT_CONTACT_INFO = 20003;
        int EDIT_CLOCK = 20004;
        int GET_QRCODE = 20005;
        int GET_WX_QRCODE = 20006;
        int GET_CROP_WX_QRCODE = 20007;
        int SELECT_USER_HEADER = 20008;
        int ADD_BANK_CARD = 20009; // 添加银行卡
        int SELECT_BANK_CARD = 20010; // 选择银行卡
        int WITH_DRAWAL = 20011; // 提现
        int SET_BLOOD_PRESS_REMIND = 20013; // 设置血压测量提醒
        int SELECT_RECEIVING_ADDRESS = 20014; // 获取收货地址
        int UPLOAD_PRESCRIPTION_IMG = 20015; // 上传处方照片
        int SEARCH_POI = 20016; // 搜索位置
        int EDIT_FANCE = 20017; // 搜索位置
        int EDIT_XM_CLOCK = 20018; // 编辑星迈手表闹钟
        int EDIT_XR_CLOCK = 20019; // 编辑新蕊手表闹钟
    }

    interface PermissionRequestCode {
        int DEFAULT = 30000;
        int PERMISSION_REQUEST_CODE_CAMERA = 30001;
        int PERMISSION_REQUEST_CALL_PHONE = 30003;
        int PERMISSION_REQUEST_CODE_STORAGE = 30004;
        //        int PERMISSION_READ_PHONE_STATE = 30005;
        int PERMISSION_REQUEST_CODE_LOCATION = 30006;
    }

    interface VipType {
        int TRAVEL = 1;
        int PHYSICAL_EXAMINATION = 2;
    }

    interface Alarm {
        int ALARM_ING = 0;
        int ALARM_SUCCESS = 1;
        int ALARM_FAIL = 2;
        int ALARM_CLEAR = 3;
    }
}























